// 常量

// 格子类型
export enum CellType {
    empty = '',
    bear = 'bear',
    bird = 'bird',
    cat = 'cat',
    chicken = 'chicken',
    fox = 'fox',
    frog = 'frog',
    horse = 'horse',
}

// 所有格子
export const cellList = [ CellType.bear, CellType.cat, CellType.chicken, CellType.fox, CellType.frog, CellType.horse ];

// 棋盘容量
export enum GridSize {
    gridWidth = 630,
    gridHeight = 630,
    gridRows = 9,
    gridColumns = 9,
    cellWidth = 70,
    cellHeight = 70,
    // x,y轴的偏移像素
    offsetX = Math.floor((GridSize.gridWidth - GridSize.cellWidth*GridSize.gridColumns) / GridSize.gridColumns),
    offsetY = Math.floor((GridSize.gridHeight - GridSize.cellHeight*GridSize.gridRows) / GridSize.gridRows),
}

// cell 动作,(移动, 选择, 消除等)
export enum CellAction {
    // 选中
    selected,
    // 移动
    moveTo,
    toDie,
    // 死前抖动
    toShake,
    delay,
    // 更新状态
    updateStatus,
}

// 格子的动画状态
export enum CellStatus {
    common,
    click,
    line,
    column,
    wrap,
    bird,
}

// cell 动效
export enum CellEffect {
    crush,
}

// cell 动作时间
export enum CellActionTime {
    moveTo = 0.4,
}
